<h1>Table Reference</h1>

<table class="list">
<tr class='thead-tr'>
  <td>Package</td><td>Table (<?php echo count($model->tables)?>)</td><td>Last update</td><td>Updates</td><td>Description</td>
</tr>
<?php foreach($model->packages as $package=>$tables): ?>
<?php foreach($tables as $i=>$table): ?>
<tr>
<?php if(!$i): ?>
  <td rowspan="<?php echo count($tables); ?>"><?php echo '<a name="'.$package.'"></a>' . $package; ?></td>
<?php endif; ?>
  <td><a href='<?php echo $table->table_name?>.html'><?php echo $table->table_name; ?></a></td>
  <td align=center><?php echo $table->last_update?></td>	
  <td align=center><?php echo $table->update_count?></td>
  <td><?php echo $table->description?></td>
</tr>
<?php endforeach; ?>
<?php endforeach; ?>
</table>